package org.dromara.demo.domain.bo;

import org.dromara.demo.domain.JsFile;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * file业务对象 js_file
 *
 * @author zhu
 * @date 2025-01-02
 */
@Data
@AutoMapper(target = JsFile.class, reverseConvertGenerate = false)
public class JsFileBo {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     *
     */
    private String fileName;

    /**
     *
     */
    private byte[] file;

    /**
     * 文件类型，例如：pdf,excel
     */
    private String type;

    /**
     *
     */
    private Long executeId;


}
